package com.example.test_event_and_callback.infras.async;

import lombok.Getter;
import lombok.Setter;

import java.util.Map;
import java.util.function.Consumer;

@Getter
@Setter
public abstract class Demander {

    private int count;
    private Map<String, Consumer<Object>> mappedFunction;

    protected abstract Map<String, Consumer<Object>> initMap();

    public Demander() {
        setMap();
    }

    public void setMap() {
        this.mappedFunction = initMap();
    }
}
